package com.blockmeta.bbs.businesslibrary.net.retrofit.api;

import com.blockmeta.bbs.businesslibrary.net.pojo.BaseCodeResponse;
import com.blockmeta.bbs.businesslibrary.net.pojo.BaseImResponse;
import com.blockmeta.bbs.businesslibrary.net.pojo.PublicKeyRequestPOJO;
import com.blockmeta.bbs.businesslibrary.net.pojo.RefreshJWTPOJO;
import com.blockmeta.bbs.businesslibrary.pojo.LoginPOJO;

import io.reactivex.Flowable;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface InterfaceGetPublicKey {


    @POST("/needChangeSecretKey")
    Flowable<BaseCodeResponse<Boolean>> needChangeSecretKey(@Body PublicKeyRequestPOJO content);

    @POST("/changePublicSecretKey")
    Flowable<BaseCodeResponse<String>> changePublicSecretKey(@Body PublicKeyRequestPOJO content);

    @POST("/accountopen/refreshToken")
    Flowable<BaseImResponse<LoginPOJO>> refreshToken(@Body RefreshJWTPOJO content);

}
